package com.nmsl.membership.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.nmsl.common.annotation.Excel;
import com.nmsl.common.core.domain.BaseEntity;

/**
 * 会员表对象 membership
 * 
 * @author liuyan
 * @date 2025-02-14
 */
//会员列表
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Membership extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员ID */
    private Long membershipId;

    /** 会员卡号 */
    @Excel(name = "会员卡号")
    private String membershipCardNumber;

    /** 会员类型 */
    @Excel(name = "会员类型")
    private String membershipType;

    /** 患者id（患者表） */
    @Excel(name = "患者id", readConverterExp = "患=者表")
    private Long patientId;

    /** 累计消费(元) */
    @Excel(name = "累计消费(元)")
    private String totalConsumption;

    /** 开卡时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开卡时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date membershipOpeningTime;

    /** 会员状态（0停用 1启用） */
    @Excel(name = "会员状态", readConverterExp = "0=停用,1=启用")
    private Integer membershipStatus;
/**
 * 患者表
 * */
    private lyPatient patient;
//    会员等级表
    private MembershipLevel membershipLevel;
//    储值表
    private ValueStorage valueStorage;

    /** 扩展字段1 */
    private String ext1;

    /** 扩展字段2 */
    private String ext2;

    /** 扩展字段3 */
    private String ext3;


}
